<html>
<head>
<script language="JavaScript">
function myprint() {
window.parent.frame2.focus();
window.print();
}
</script>
</head>
<body>
<input type=button value="Print Right Frame" onClick="myprint()">
</body>
</html>